<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>

<xsl:template match="/">
<html>
	<body>
		<h2>RRD</h2>
		<table border="1">
			<tr>
				<td>version</td>
				<td><xsl:value-of select="rrd/version"/></td>
			</tr>
			<tr>
				<td>step</td>
				<td><xsl:value-of select="rrd/step"/></td>
			</tr>
			<tr>
				<td>lastupdate</td>
				<td><xsl:value-of select="rrd/lastupdate"/></td>
			</tr>
		</table>
		<xsl:apply-templates select="rrd/ds"/>
	</body>
</html>
</xsl:template>

<xsl:template match="rrd/ds">
	<table border="1">
	<xsl:for-each select="*">
		<tr>
			<td><xsl:value-of select="name()"/></td>
			<td><xsl:value-of select="."/></td>
		</tr>
	</xsl:for-each>
	</table>
</xsl:template>

<!--
<xsl:template match="rrd">
	<table border="1">
	<xsl:for-each select="rra">
		<tr>
			<td><xsl:value-of select="name()"/></td>
			<td><xsl:value-of select="."/></td>
		</tr>
	</xsl:for-each>
	</table>
</xsl:template>
-->
</xsl:stylesheet>